﻿using System;
using Pay.TO;
using Newtonsoft.Json;

namespace Pay.DTO {
	/// <summary>
	/// 实名认证请求
	/// </summary>
	[JsonObject(MemberSerialization.OptOut)]
	[Serializable]
	public class certify_verify : head_req {
		/// <summary>
		/// 订单号
		/// </summary>
		public string order_no { get; set; }
		/// <summary>
		/// 通道
		/// </summary>
		public PayChannel pay_channel { get; set; }
		/// <summary>
		/// 认证类型:0030三要素（姓名、身份证、卡号），0040（姓名、身份证、卡号、预留手机号） 0020(姓名 身份证)
		/// </summary>
		public string verify_type { get; set; }
		/// <summary>
		/// 卡号
		/// </summary>
		public string account_no { get; set; }
		/// <summary>
		/// 身份证号码
		/// </summary>
		public string id_card { get; set; }
		/// <summary>
		/// 户名
		/// </summary>
		public string account_name { get; set; }
		/// <summary>
		/// 手机号
		/// </summary>
		public string mobile { get; set; }
		/// <summary>
		/// 卡类型 1-借记卡，2-贷记卡
		/// </summary>
		public int card_type { get; set; }
		/// <summary>
		/// 银行类型:ky要，其它不用
		/// </summary>
		public string bank_code { get; set; }
		/// <summary>
		/// 认证状态
		/// </summary>
		[JsonIgnore]
		public CertifyStatus status { get; set; }
		/// <summary>
		/// 价格
		/// </summary>
		[JsonIgnore]
		public decimal amount { get; set; }
	}
	/// <summary>
	/// 实名认证响应
	/// </summary>
	[Serializable]
	public class certify_verify_result : ApiResultMessage {
		/// <summary>
		/// 审核状态 1：待审核  3：审核通过
		/// </summary>
		public AuthStatusEnum status { get; set; }
	}
}
